import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {UserDetailsComponent} from './details/user-details.component';
import {UserFavoriteComponent} from './favorite/user-favorite.component';
import {UserRateComponent} from './rate/user-rate.component';


const routes: Routes = [
  {path: 'details', component: UserDetailsComponent, outlet: 'userHome'},
  {path: 'favorite', component: UserFavoriteComponent, outlet: 'userHome'},
  {path: 'rate', component: UserRateComponent, outlet: 'userHome'},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class UserRoutingModule {
}
